package cn.cdutet;

import cn.cdutet.Dao.Student_sum;
import cn.cdutet.Dao.Sum;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
        ctx.registerShutdownHook();
        Sum sum = ctx.getBean("sum", Sum.class);
        sum.save();
    }
}
